package br.com.wagnerpaz.psychommand;

import java.io.PrintWriter;

/**
 * Defines a command processor.
 * 
 * @author Wagner Paz
 * @since  1.0
 */
public interface CommandProcessor
{
	/**
	 * Process a determined command.
	 * 
	 * @param c    The command definition.
	 * @param data The register data to be processed.
	 * @param out  The response stream.
	 * 
	 * @return True case the session must be close.
	 */
	public boolean process(Command c, String data, PrintWriter out);
}